#pragma once
#include <QtGui>
#include <QtNetwork>

class passData
{
public:
	passData(void);
	~passData(void);

	bool checkPassword(QString &name, QString &pass);
	void changePassword(QString &name, QString &pass);
	void addUser(QString &name, QString &pass);
	void delUser(QString &name);
	QList<QString> getUsersList();
	QString versionUsersList;

private:
	QMap<QString, QString> data;

	bool saveToFile();
	void loadFromFile();
};

